import uviewPlus from 'uview-plus'
import Layout from './components/Layout/index.vue';
import siteInfo from './config/siteInfo';
import './config/request'
import './static/css/index.css'
import './static/css/base.css'
import { createSSRApp } from "vue";
import App from "./App.vue";
import "uview-plus/index.scss";
import { createPinia } from 'pinia';
export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();
  app.component('Layout', Layout)
  app.use(pinia).use(uviewPlus as any)
  app.config.globalProperties.$baseURL = siteInfo.baseURL
  return {
    app,
  };
}
